package com.itheima.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author robin
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User2 {
    @TableId
    private Long userId;

    @TableField("user_name")
    private String name;
    //用户性别
    private Integer userSex;
    //用户出生年月
    private LocalDate userBirthday;
    //记录创建时间
    private Date createTime;
    //记录更新时间
    private Date updateTime;
}
